<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景图位置</title>
    <style>
        /* 盒子大小 500*500px */
        .right-top{
            /* 关键字 */
            width: 500px;
            height: 500px;
            background-image: url(./img/img01.jpg);
            background-position: right top;
            background-repeat: no-repeat;
            background-color: pink;
            color: gray;
        }

        .center{
            width: 500px;
            height: 500px;
            background-image: url(./img/img01.jpg);
            background-position: center;
            background-repeat: no-repeat;
            background-color: pink;
            color: gray;
        }

        .number-set{
            width: 500px;
            height: 500px;
            background-image: url(./img/img01.jpg);
            background-position: 100px 200px;
            background-repeat: no-repeat;
            background-color: pink;
            color: gray;
        }
    </style>
</head>
<body>
    <div class="right-top"> 关键字设置位置 </div>
    <br>
    <div class="center"> center </div>
    <br>
    <div class="number-set"> 100px 200px </div>
</body>
</html>